package LawsonTransformJava.xref;

import java.sql.SQLException;

public class XrefGLAccount extends CrossRef {

	private final static String TABLE_NAME = "xGLACCOUNT";
	static final String XLATE_ERROR = "ACCT_ERROR";

	public XrefGLAccount(boolean allowBlanks) throws SQLException {
			stmt = xref.getDataStatement();
			rslt = stmt.executeQuery("SELECT * FROM " + TABLE_NAME);
			this.allowBlanks = allowBlanks;
			super.XLATE_ERROR=XLATE_ERROR;
			while (rslt.next()) {
				// The following should get the appropriate column from the Xref Table
				String old = rslt.getString(1);
				String newX = rslt.getString(2);
				values.put(old, newX);
			}
	}
}
